package cn.hwadee.muying.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import cn.hwadee.muying.commons.base.BaseModel;

/**
 * <p>
 * 
 * </p>
 *
 * @author SuWuqiang
 * @since 2018-08-08
 */
public class Comment extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 所属机构id
     */
    @TableField("org_id")
        
    private Long orgId;
    /**
     * 被评价职员id
     */
    @TableField("worker_id")
        
    private Long workerId;
    /**
     * 评价用户id
     */
    @TableField("user_id")
        
    private Long userId;
    /**
     * 评价内容
     */
        
    private String content;
    /**
     * 星级
     */
        
    private Long star;

    @TableField(exist =  false)
    private String username;

    @TableField(exist = false)
    private String workername;

    public String getWorkername() {
        return workername;
    }

    public void setWorkername(String workername) {
        this.workername = workername;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Long workerId) {
        this.workerId = workerId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getStar() {
        return star;
    }

    public void setStar(Long star) {
        this.star = star;
    }

    public static final String ORG_ID = "org_id";

    public static final String WORKER_ID = "worker_id";

    public static final String USER_ID = "user_id";

    public static final String CONTENT = "content";

    public static final String STAR = "star";

    @Override
    public String toString() {
        return "Comment{" +
                ", orgId=" + orgId +
                ", workerId=" + workerId +
                ", userId=" + userId +
                ", content=" + content +
                ", star=" + star +
        "}";
    }
}
